Skip to content

root: switch cspell to typo-only reporting - #24701

Merged
GirlBossRush merged 3 commits into
mainfrom
root/cspell-typo-only
Aug 7, 2026
Merged

root: switch cspell to typo-only reporting#24701
GirlBossRush merged 3 commits into
mainfrom
root/cspell-typo-only

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Details

Follow-up to #20188. cSpell's default mode reports every word it doesn't recognize, so each new integration name or identifier needed a dictionary entry, and the dictionaries and ignore regexes grew with every PR. Everyone who added those entries was doing the right thing under the old mode; the mode itself was the problem.

This switches to unknownWords: "report-common-typos", which works the way CodeSpell did: only words on the common-misspellings list (each reported with a suggested fix) and the British spellings in flagWords fail the check. Unknown words pass silently, so new terms no longer need dictionary entries.

  • Enable typo-only mode and remove the per-topic dictionaries and word-shape ignore regexes. Content-scoping rules (encoded blobs, generated files, Python comments-only) remain.
  • Replace the eight dictionary files with a single overrides.txt for terms that collide with the misspellings list (first entry: ontext, a Guacamole API member).
  • Fix the 18 typos the new mode surfaced, which the old allowlists were masking (seperated in a Radius UI string, Comparision identifiers, AKLicenceNotice, several release-note typos).
  • Remove the 14 inline ignore comments that are no longer needed; the three kept guard real collisions.
  • Update AGENTS.md and website/AGENTS.md to describe the new workflow.

make lint-spellcheck passes over the full tree.

Copilot AI lite review requested due to automatic review settings August 3, 2026 17:28
@GirlBossRush
GirlBossRush requested review from a team as code owners August 3, 2026 17:28
@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 471e194
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a7526b0b324d500081a34e8
😎 Deploy Preview https://deploy-preview-24701--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 471e194
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a7526b0ef275d000805edad
😎 Deploy Preview https://deploy-preview-24701--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 3653726
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a74b3a1c3c054000830524c
😎 Deploy Preview https://deploy-preview-24701--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo’s spellchecking workflow by switching cspell to a typo-only reporting mode, simplifying dictionary maintenance, and applying spelling fixes that were previously masked by allowlists across the monorepo.

Changes:

  • Switch cspell to typo-only reporting (unknownWords: "report-common-typos") and collapse per-topic dictionaries into a single collision overrides list.
  • Remove now-unnecessary inline spellchecker ignore/disable comments across docs, tests, and source files.
  • Fix newly surfaced typos in docs, UI strings, Python/Rust comments, and Node utilities.

Reviewed changes

Copilot reviewed 34 out of 36 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/integrations/chat-communication-collaboration/grommunio/index.md Removes unnecessary spellchecker ignore comment.
website/docs/security/cves/CVE-2026-49443.md Removes unnecessary spellchecker ignore comment.
website/docs/releases/2026/v2026.5.md Cleans up ignore comment and fixes release-note typo (“removable”).
website/docs/releases/2026/v2026.2.md Removes unnecessary spellchecker ignore comment.
website/docs/releases/2025/v2025.12.md Cleans up ignore comment and fixes release-note typo (“providers”).
website/docs/releases/2024/v2024.4.md Removes unnecessary cspell ignore comment.
website/docs/releases/2024/v2024.2.md Fixes release-note typo (“enterprise”).
website/docs/releases/2022/v2022.12.md Fixes release-note typo (“ak-search-select”).
website/docs/developer-docs/frontend/css-architecture.md Removes unnecessary cspell words list comment.
website/docs/developer-docs/frontend/cascade-layers.md Removes unnecessary cspell words list comment.
website/AGENTS.md Documents the new typo-only spellcheck workflow and overrides usage.
web/types/rapi-doc/index.d.ts Removes spellchecker disable/enable block.
web/types/dom.d.ts Removes unnecessary spellchecker ignore comment.
web/test/unit/unescape-locale-entities.test.ts Removes unnecessary cspell ignore comment.
web/src/styles/global/locales/zh/globals.css Removes spellchecker disable/enable block in locale CSS.
web/src/styles/global/locales/ja/globals.css Removes spellchecker disable/enable block in locale CSS.
web/src/elements/LicenseNotice.ts Fixes class name typo (AKLicenceNoticeAKLicenseNotice).
web/src/admin/users/UserListPage.ts Fixes typo in a region marker comment (“Rendering”).
web/src/admin/providers/radius/RadiusProviderFormForm.ts Fixes typo in UI help text (“comma-separated”).
web/docs/arch/2026-06-18-How-CSS-Is-Made-And-Next-Steps.md Updates documentation wording/path related to the CSS build pipeline.
scripts/node/utils/node.mjs Fixes “Comparison” identifier typos in package.json field handling.
packages/geo/test/labels.test.ts Removes unnecessary spellchecker disable-next-line comments.
packages/ak-common/src/tokio/proxy_protocol/header.rs Fixes typo in Rust doc comment (“mentioned”).
locale/en/dictionaries/software-terms.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/rust.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/python.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/people.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/overrides.txt Adds a single overrides list for legitimate collision terms.
locale/en/dictionaries/integrations.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/ignore.txt Removes old ignore list dictionary file (no longer needed).
locale/en/dictionaries/idp.txt Removes per-topic cspell dictionary file (no longer needed).
locale/en/dictionaries/golang.txt Removes per-topic cspell dictionary file (no longer needed).
cspell.config.jsonc Enables typo-only mode and simplifies dictionaries/ignore patterns accordingly.
authentik/outposts/signals.py Fixes typo in a Python comment (“ForeignKeys”).
authentik/lib/utils/reflection.py Fixes typo in a docstring (“subclasses”).
AGENTS.md Updates repo-level spellcheck documentation to reflect typo-only mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/docs/arch/2026-06-18-How-CSS-Is-Made-And-Next-Steps.md Outdated
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.33%. Comparing base (d34667a) to head (471e194).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##             main   #24701       +/-   ##
===========================================
+ Coverage   49.59%   91.33%   +41.73%     
===========================================
  Files        1137     1137               
  Lines       71540    71540               
  Branches     3875     3875               
===========================================
+ Hits        35479    65339    +29860     
+ Misses      36026     6166    -29860     
  Partials       35       35               
Flag Coverage Δ
conformance 34.85% <ø> (+0.74%) ⬆️
e2e 39.57% <ø> (?)
integration 30.97% <ø> (?)
rust 38.89% <ø> (ø)
unit 93.03% <ø> (+43.51%) ⬆️
unit-migrate 93.05% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Copilot AI review requested due to automatic review settings August 3, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 3, 2026 17:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated no new comments.

@GirlBossRush GirlBossRush added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc area:backend area:docs Features or issues related to Docusaurus labels Aug 5, 2026
@GirlBossRush GirlBossRush moved this from Todo to In review in authentik Core Aug 5, 2026
@GirlBossRush GirlBossRush moved this from In review to Needs review in authentik Core Aug 5, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Aug 6, 2026
Copilot AI review requested due to automatic review settings August 6, 2026 14:38
@GirlBossRush
GirlBossRush force-pushed the root/cspell-typo-only branch from 8efa597 to c0ce981 Compare August 6, 2026 14:38
@GirlBossRush GirlBossRush added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 6, 2026
@GirlBossRush
GirlBossRush enabled auto-merge (squash) August 6, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 6, 2026 16:17
@GirlBossRush
GirlBossRush force-pushed the root/cspell-typo-only branch from c0ce981 to 3653726 Compare August 6, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated no new comments.

cSpell's default mode reports every word it does not recognize, so each
new integration name or identifier needed a dictionary entry. Switch to
unknownWords: report-common-typos, which matches CodeSpell's behavior:
only known misspellings (reported with a suggested fix) and flagWords
fail the check.

Remove the per-topic dictionaries and word-shape ignore regexes this
makes unnecessary, fix the 18 typos the old allowlists were masking,
and document the new workflow.

Claude-Session: https://claude.ai/code/session_014ZuquWGxU5ReaXR5D3NmwW
Copilot AI review requested due to automatic review settings August 7, 2026 00:28
@GirlBossRush
GirlBossRush force-pushed the root/cspell-typo-only branch from 3653726 to 471e194 Compare August 7, 2026 00:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 36 changed files in this pull request and generated no new comments.

@GirlBossRush
GirlBossRush merged commit 065170f into main Aug 7, 2026
146 checks passed
@GirlBossRush
GirlBossRush deleted the root/cspell-typo-only branch August 7, 2026 00:55
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 7, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.8 has conflicts: #24852

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-471e194baa6844681b33c30e9045d754b18f7b98
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-471e194baa6844681b33c30e9045d754b18f7b98

Afterwards, run the upgrade commands from the latest release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend area:docs Features or issues related to Docusaurus area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants